package org.grey.edz;

import org.grey.edz.converter.DateConverter;
import org.grey.edz.converter.i.IDZipConverter;

import java.time.LocalDate;
import java.util.Date;
import java.util.function.Supplier;

/**
 * @program: easy-data-zipper
 * @ClassName ConverterEnum
 * @description:
 * @author: Grey
 * @create: 2024-01-09 17:34
 */
public enum ConverterEnum {
    DATE(DateConverter.self,Date::new),
    YEAR(null,()->LocalDate.now().getYear()),
    MONTH(null,()->LocalDate.now().getMonth()),
    DAY(null,()->LocalDate.now().getDayOfMonth()),
    USER(null,null),
    CUSTOM(null,null),
    ;

    public final IDZipConverter converter;
    public final Supplier<?> supplier;

    ConverterEnum(IDZipConverter converter,Supplier<?> supplier) {
        this.supplier = supplier;
        this.converter = converter;
    }
}
